#ifndef _MKE_ERR_H_
#define _MKE_ERR_H_

typedef enum {
	MKE_ERROR_FATAL = 0,
	MKE_ERROR_WARNING = 1,
	MKE_ERROR_EOF
} mke_err_t;

void print_error(mke_err_t type, const sr_t *sr, ecm_uint32 errlineno, const char *fmt, ...);
void raise_error(mke_err_t type, ecm_uint32 lineno, const char *fmt, ...);

void add_src_info(sr_t *sr, ecm_uint32 lineno);
void add_srcinfo_ext(sr_t *sr, ecm_uint32 lineno);

ecm_uint32 get_error_count(mke_err_t type);

#endif
